<%--
 * action-1.jsp
 *
 * Copyright (C) 2013 Universidad de Sevilla
 * 
 * The use of this project is hereby constrained to the conditions of the 
 * TDG Licence, a copy of which you may download from 
 * http://www.tdg-seville.info/License.html
 --%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags"%>

<display:table pagesize="5" class="displaytag" keepStatus="true"
	name="purchasedItems" requestURI="${requestURI}" id="row">

		
	<spring:message code="purchasedItem.referenceNumber" var="referenceNumberHeader" />
	<display:column property="referenceNumber" title="${referenceNumberHeader}"
		sortable="false" />
		
	<spring:message code="purchasedItem.name" var="nameHeader" />
	<display:column property="name" title="${nameHeader}"
		sortable="true"  />
		
	<spring:message code="purchasedItem.units" var="purchasedUnitsHeader" />
	<display:column property="purchasedUnits" title="${purchasedUnitsHeader}"
		sortable="true"  />
		

		
	<spring:message code="purchasedItem.price" var="priceHeader" />
	<display:column property="price" title="${priceHeader}"
		sortable="true" />
		

	<spring:message code="purchasedItem.buyerName" var="buyerNameHeader" />
	<display:column property="order.buyer.name" title="${buyerNameHeader}"
		sortable="false" />
		
	<spring:message code="purchasedItem.buyerAddress" var="buyerAddressHeader" />
	<display:column property="order.buyer.address" title="${buyerAddressHeader}"
		sortable="false" />
	
	<display:column>
			<a href="purchasedItem/customer/edit.do?purchasedItemId=${row.id}"><spring:message
					code="purchasedItem.view" /></a>
	</display:column>


	

</display:table>



<acme:cancel code="purchasedItem.goBack" url="${backURI}" />


